# -*- coding: utf-8 -*-
from Page.issuePage import issuePage
from Page.noscanningPage import noscanningPage
import time
class issue():
    def __init__(self,driver):
        self.driver=driver
        self.noscanningPage = noscanningPage(self.driver)
        self.issuePage=issuePage(self.driver)
    def issue(self):
        self.driver.switch_to.default_content()
        self.driver.switch_to.frame("fraMenu")
        time.sleep(2)
        self.issuePage.btnIssue().click()
        time.sleep(1)
    def issue1(self,GrpPropNo):
        self.driver.switch_to.default_content()
        self.driver.switch_to.frame("fraInterface")
        time.sleep(1)
        self.issuePage.inpGrpPropNo().send_keys(GrpPropNo)
        time.sleep(1)
        self.issuePage.btnQuery().click()
        time.sleep(1)
        self.issuePage.btnQueryResultGridSel().click()
        time.sleep(1)
        self.issuePage.btnIssueit().click()
        time.sleep(1)
        window1 = self.driver.window_handles
        self.driver.switch_to.window(window1[-1])
        self.noscanningPage.butSubmit().click()
        time.sleep(1)

